using System;

namespace Demo.ViciMvc
{
    // This class uses public fields (not the best way to design classes, 
    // but it works with ProMesh.NET)
    public class Employee
    {
        public Employee()
        {
        }

        public Employee(int employeeID,string name, decimal salary, int departmentID)
        {
            EmployeeID = employeeID;
            Name = name;
            Salary = salary;
            DepartmentID = departmentID;
        }

        public int EmployeeID;
        public string Name;
        public decimal? Salary;
        public int DepartmentID;


        public Department Department
        {
            get { return DataService.LoadDepartment(DepartmentID);  }
        }

        public Employee Clone()
        {
            return (Employee)MemberwiseClone();
        }
    }

}
